package com.you.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.you.shortlink.project.dao.entity.ShortLinkDO;
import com.you.shortlink.project.dto.req.RecycleBinRecoverDTO;
import com.you.shortlink.project.dto.req.RecycleBinRemoveDTO;
import com.you.shortlink.project.dto.req.RecycleBinSaveDTO;
import com.you.shortlink.project.dto.req.ShortLinkRecycleBinPageReqDTO;
import com.you.shortlink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * 回收站管理接口层
 */
public interface RecycleBinService extends IService<ShortLinkDO> {

    /**
     * 保存回收站
     * @param requestParam 请求参数
     */
    void saveRecycleBin(RecycleBinSaveDTO requestParam);

    /**
     * 分页查询回收站的短链接
     * @param requestParam 分页查询短链接请求参数
     * @return 已回收的短链接分页返回
     */
    IPage<ShortLinkPageRespDTO> pageRecycleBinShortLink(ShortLinkRecycleBinPageReqDTO requestParam);

    /**
     * 恢复短链接
     * @param requestParam 请求参数
     */
    void recoverRecycleBin(RecycleBinRecoverDTO requestParam);

    /**
     * 移除短链接
     * @param requestParam 请求参数
     */
    void removeRecycleBin(RecycleBinRemoveDTO requestParam);

}
